<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>CSV Parser</title>
  <style>
    body {
      margin: 0;
      padding: 10;
    }

    #input {
      width: 100%;
      height: calc(100vh - 100px); /* 减去按钮的高度 */
      font-size: 16px;
      padding: 20px;
      box-sizing: border-box;
    }
    
    #table-container {
      display: none;
    }
    
    #table {
      margin: 20px auto;
      border-collapse: collapse;
      font-size: 16px;
      text-align: center;
    }
    
    #table th, #table td {
      padding: 10px;
      border: 1px solid #ccc;
    }
    
    #table td:hover {
      cursor: pointer;
      background-color: #eee;
    }
    
    #button-container {
      position: fixed;
      bottom: 20px; /* 调整按钮的位置 */
      left: 50%;
      transform: translateX(-50%);
      margin-top: 20px;
    }
    
    #reset-button {
      display: none;
    }
    
    button {
      font-size: 16px;
      padding: 10px 20px;
      border-radius: 5px;
      background-color: #007bff;
      color: #fff;
      border: none;
      cursor: pointer;
    }
    
    button:hover {
      background-color: #0069d9;
    }
  </style>
</head>
<body>
  <div class="inputarea">
    <textarea id="input" placeholder="Please input CSV text..."></textarea>
  </div>
  
  <div id="button-container">
    <button id="parse-button">Parse</button>
    <button id="reset-button">Reset</button>
  </div>
  
  <div id="table-container">
    <table id="table"></table>
  </div>

  <script src="scripts/fastcopy.js"></script>
</body>
</html>